import instance from '@/utils/request';

//单位管理列表
export function GetUnits(data) {
    return instance.request({
        url: "api/Units/GetUnit",
        method: "post",
        data
    })
}
//添加单位
export function AddUnit(data) {
    return instance.request({
        url: "api/Units/AddUnit",
        method: "post",
        data
    })
}
//删除单位
export function DelUnit(data) {
    return instance.request({
        url: "api/Units/DelUnit",
        method: "post",
        data
    })
}
//批量删除单位
export function DeletesUnit(data) {
    return instance.request({
        url: "api/Units/DeletesUnit",
        method: "post",
        data
    })
}
//反填单位
export function ReckUnit(data) {
    return instance.request({
        url: "api/Units/ReckUnit",
        method: "post",
        data
    })
}
//编辑单位
export function UpdateUnit(data) {
    return instance.request({
        url: "api/Units/UpdateUnit",
        method: "post",
        data
    })
}